home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / fax / src / libtiff / tiffconf.h < prev    next >
C/C++ Source or Header  |  1994-08-01  |  4KB  |  120 lines

  1. /* $Header: /usr/people/sam/tiff/libtiff/RCS/tiffconf.h,v 1.2 92/11/09 11:10:08 sam Rel $ */
  2. /*
  3.  * Copyright (c) 1988, 1989, 1990, 1991, 1992 Sam Leffler
  4.  * Copyright (c) 1991, 1992 Silicon Graphics, Inc.
  5.  *
  6.  * Permission to use, copy, modify, distribute, and sell this software and 
  7.  * its documentation for any purpose is hereby granted without fee, provided
  8.  * that (i) the above copyright notices and this permission notice appear in
  9.  * all copies of the software and related documentation, and (ii) the names of
  10.  * Sam Leffler and Silicon Graphics may not be used in any advertising or
  11.  * publicity relating to the software without the specific, prior written
  12.  * permission of Sam Leffler and Silicon Graphics.
  13.  * 
  14.  * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  15.  * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  16.  * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  17.  * 
  18.  * IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  19.  * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  20.  * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  21.  * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  22.  * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  23.  * OF THIS SOFTWARE.
  24.  */
  25.  
  26. #ifndef _TIFFCONF_
  27. #define    _TIFFCONF_
  28. /*
  29.  * Library Configuration Definitions.
  30.  *
  31.  * This file defines the default configuration for the library.
  32.  * If the target system does not have make or a way to specify
  33.  * #defines on the command line, this file can be edited to
  34.  * configure the library.  Otherwise, one can override portability
  35.  * and configuration-related definitions from a Makefile or command
  36.  * line by defining FEAURE_SUPPORT and COMPRESSION_SUPPORT (see below).
  37.  */
  38.  
  39. /*
  40.  * General portability-related defines:
  41.  *
  42.  * USE_VARARGS        define as 0 or 1 to select between the use of
  43.  *            varargs.h and stdarg.h; i.e. -DUSE_VARARGS=0
  44.  *            means use stdarg.h
  45.  * USE_PROTOTYPES    define as 0 or 1 to select function declarations
  46.  *            and definitions with parameter types
  47.  * USE_CONST        if your compiler defines __STDC__ or __EXTENSIONS__,
  48.  *            but does not support const, define this as 0,
  49.  *            otherwise leave it alone
  50.  * HAVE_IEEEFP        define as 0 or 1 according to the floating point
  51.  *            format suported by the machine
  52.  * BSDTYPES        define this if your system does NOT define the
  53.  *            usual 4BSD typedefs
  54.  *
  55.  * Note that if you compile the code with prototypes (USE_PROTOTYPES=1),
  56.  * then USE_VARARGS must be defined as 0.  Also, beware that if __STDC__
  57.  * is defined and the USE_* symbols are NOT defined, then the following
  58.  * will be used:
  59.  *     USE_PROTOTYPES    1
  60.  *    USE_VARARGS    0
  61.  *    USE_CONST    1
  62.  */
  63. #ifndef USE_VARARGS
  64. #define    USE_VARARGS    0
  65. #endif
  66. #ifndef USE_PROTOTYPES
  67. #define    USE_PROTOTYPES    1
  68. #endif
  69. #ifndef USE_CONST
  70. #define    USE_CONST    1
  71. #endif
  72. #ifndef HAVE_IEEEFP
  73. #define    HAVE_IEEEFP    1
  74. #endif
  75.  
  76. #ifndef FEATURE_SUPPORT
  77. /*
  78.  * Feature support definitions:
  79.  *
  80.  *    MMAP_SUPPORT    enable support for memory mapping read-only files
  81.  *    COLORIMETRY_SUPPORT enable support for 6.0 colorimetry tags
  82.  *    JPEG_SUPPORT    enable support for 6.0 JPEG tags & JPEG algorithms
  83.  *    YCBCR_SUPPORT    enable support for 6.0 YCbCr tags
  84.  *    CMYK_SUPPORT    enable support for 6.0 CMYK tags
  85.  */
  86. #define    COLORIMETRY_SUPPORT
  87. #define    JPEG_SUPPORT
  88. #define    YCBCR_SUPPORT
  89. #define    CMYK_SUPPORT
  90. #endif
  91.  
  92. #ifndef COMPRESSION_SUPPORT
  93. /*
  94.  * Compression support defines:
  95.  *
  96.  *    CCITT_SUPPORT    enable support for CCITT Group 3 & 4 algorithms
  97.  *    PACKBITS_SUPPORT    enable support for Macintosh PackBits algorithm
  98.  *    LZW_SUPPORT    enable support for LZW algorithm
  99.  *    THUNDER_SUPPORT    enable support for ThunderScan 4-bit RLE algorithm
  100.  *    NEXT_SUPPORT    enable support for NeXT 2-bit RLE algorithm
  101.  *    JPEG_SUPPORT    enable support for JPEG DCT algorithm
  102.  */
  103. #define    CCITT_SUPPORT
  104. #define    PACKBITS_SUPPORT
  105. #define    LZW_SUPPORT
  106. #define    THUNDER_SUPPORT
  107. #define    NEXT_SUPPORT
  108. #endif
  109.  
  110. /*
  111.  * ``Orthogonal Features''
  112.  *
  113.  * STRIPCHOP_SUPPORT    automatically convert single-strip uncompressed images
  114.  *            to mutiple strips of ~8Kb (for reducing memory use)
  115.  */
  116. #ifndef STRIPCHOP_SUPPORT
  117. #define    STRIPCHOP_SUPPORT        /* enable strip chopping */
  118. #endif
  119. #endif /* _TIFFCONF_ */
  120.